<?php defined('_JEXEC') or die('Restricted access'); ?>
<div class="business_popup">


<h1 class="business_name"><?php echo $this->business->title; ?></h2>

<div id="business_desc">
	<?php echo $this->business->description; ?>
</div>

<div class="clear"></div>

	<div class="left_col_business">
		<?php if($this->business->direction!=''):?>
			<div class="business_address">
				<?php echo $this->business->direction; ?>
			</div>
		<?php endif; ?>
		
		<?php
function addhttp($url) {
    if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
        $url = "http://" . $url;
    }
    return $url;
}

		?>
		
		<div class="business_info">
			<?php if($this->business->phone!=''):?><div class="business_phone"><span>T:</span> <?php echo $this->business->phone; ?></div><?php endif;?>
			<?php if($this->business->fax!=''):?><div class="business_fax"><span>F:</span> <?php echo $this->business->fax; ?></div><?php endif;?>
			<?php if($this->business->email!=''):?><div class="business_email"><span>Email:</span> <a href="mailto:<?php echo $this->business->email; ?>"><?php echo $this->business->email; ?></a></div><?php endif;?>
			<?php if($this->business->url!=''):?><div class="business_url"><span>Url:</span><a href="<?php echo addhttp($this->business->url); ?>" target="_blank"><?php echo $this->business->url; ?></a></div><?php endif;?>
		</div>
	
	</div>
	
	
	<div class="right_col_business">
		<div class="image_logo_business">
				<img src="<?php echo JURI::base(); ?>/administrator/components/com_bbitsd/assets/uploads/<?php echo $this->business->image; ?>"/>
		</div>
	</div>
	
	<div class="clear"></div>
</div>